package com.sunny.wordstudy.lib;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.wifi.WifiInfo;
import android.telephony.TelephonyManager;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintStream;
import java.util.List;

public class Stat
{
  public static boolean a;
  public static int b;
  private static Stat c;
  private int d = 0;
  private final int e = 30;
  private final int f = 100;
  private final int g = 200;
  private final int h = 200;
  private final int i = 500;
  private final int j = 14;
  private final int k = 21600;

  static
  {
    System.loadLibrary("wordstudy");
    init();
    c = new Stat();
    a = false;
    b = 0;
  }

  public static Stat a()
  {
    return c;
  }

  public static boolean a(Activity paramActivity)
  {
    PackageManager localPackageManager = paramActivity.getPackageManager();
    Intent localIntent = new Intent();
    localIntent.setAction("android.speech.tts.engine.CHECK_TTS_DATA");
    if (localPackageManager.queryIntentActivities(localIntent, 65536).size() == 0)
      System.err.println("Checked System Below V1.6 has no default TTS Service");
    for (int l = 0; ; l = 1)
    {
      return l;
      System.err.println("Checked System Above V1.5 has TTS Service");
      paramActivity.startActivityForResult(localIntent, 12);
    }
  }

  public static boolean a(Context paramContext)
  {
    PackageManager localPackageManager = paramContext.getPackageManager();
    Intent localIntent = new Intent("android.intent.action.USE_TTS");
    localIntent.addCategory("android.intent.category.TTS");
    if (localPackageManager.resolveService(localIntent, 0) == null);
    for (int l = 0; ; l = 1)
    {
      return l;
      b = 0x1 | b;
    }
  }

  public static String c()
  {
    BufferedReader localBufferedReader;
    String str1;
    int l;
    Object localObject2;
    try
    {
      localBufferedReader = new BufferedReader(new FileReader("/sys/block/mmcblk0/device/cid"));
      str1 = "";
      l = 1;
      if (l >= 100)
      {
        localObject2 = str1;
        label152: return localObject2;
      }
    }
    catch (IOException localIOException4)
    {
      String str3;
      Object localObject3;
      int i1;
      try
      {
        String str2 = localBufferedReader.readLine();
        if (str2 != null)
        {
          str3 = str2.trim();
          localObject3 = "C";
          i1 = 0;
        }
      }
      catch (IOException localIOException4)
      {
        Object localObject1;
        try
        {
          while (true)
          {
            if (i1 >= str3.length())
            {
              str1 = ((String)localObject3).toUpperCase();
              ++l;
            }
            char c1 = str3.charAt(i1);
            if ((c1 != ' ') && (c1 != ':') && (c1 != '-'))
            {
              String str4 = localObject3 + c1;
              localObject3 = str4;
            }
            ++i1;
          }
          localIOException4 = localIOException4;
          localObject1 = "";
          IOException localIOException1 = localIOException4;
          localIOException1.printStackTrace();
          localObject2 = localObject1;
        }
        catch (IOException localIOException3)
        {
          localObject1 = localObject3;
          break label152:
          localIOException3 = localIOException3;
          localObject1 = str1;
          break label152:
          localObject2 = str1;
        }
      }
    }
  }

  public static native void deinit();

  public static native void init();

  public static native boolean isLoadedVoice();

  public static native boolean isMp3Voice();

  public static native boolean isVoiceFileAvailable();

  public native void PlaySound(String paramString);

  public final boolean a(int paramInt)
  {
    if ((this.d == 0) && (getTotalLearnNum() > 200 + paramInt * 75));
    for (int l = 1; ; l = 0)
      return l;
  }

  public final int b()
  {
    return this.d;
  }

  public final boolean b(int paramInt)
  {
    if ((this.d == 0) && (getTotalLearnNum() > 100 + paramInt * 25));
    for (int l = 1; ; l = 0)
      return l;
  }

  public native int checkStudyDBVer();

  public native long getAllStudiedNum();

  public native long getAllWordOkNum();

  public native long getBlockWordOkNum();

  public native long getBookWords();

  public native String getChooseItem(int paramInt);

  public native String getDBSummary(String paramString);

  public native String getDictLang();

  public native String getDictWordMean(String paramString);

  public native String getDictWordSample(String paramString);

  public native String getDictWordVoice(String paramString);

  public native long getIntroduceNum();

  public native long getLastStudyStat();

  public native String getRegUserName();

  public native long getReviewNum();

  public native long getSessionLearnedTime();

  public native String getSessionTime();

  public native long getSessionType();

  public native String getStudyBookName();

  public native String getStudyLang();

  public native String getStudyWord();

  public native String getStudyWordMean();

  public native String getStudyWordRel();

  public native String getStudyWordSample();

  public native String getStudyWordVoice();

  public native long getTestFailNum();

  public native long getTestOkNum();

  public native long getTotalIntroducedWords();

  public native long getTotalLearnNum();

  public native long getTotalLearnTime1(boolean paramBoolean);

  public native long getTotalLearnedTime();

  public native long getWordForgetNum();

  public native long getWordLearnNum();

  public native long getWordNum();

  public native String getWordRp();

  public native int getWordShowPos();

  public native boolean isLoadedDict();

  public native boolean isTestMode();

  public native void resetStudyData();

  public native void setDict(String paramString);

  public native void setIMEI(TelephonyManager paramTelephonyManager);

  public native void setMAC(WifiInfo paramWifiInfo);

  public native void setRegSN(String paramString);

  public native void setRegUser(String paramString);

  public void setReged(int paramInt)
  {
    this.d = paramInt;
  }

  public native void setStudy(String paramString);

  public native void setStudyNewWordAppearRole(int paramInt);

  public native void setUseRandomWord(int paramInt);
}

/* Location:           E:\Desktop\Android\wordstd\classes_dex2jar.jar
 * Qualified Name:     com.sunny.wordstudy.lib.Stat
 * JD-Core Version:    0.5.3
 */